package com.slz3.business.module.financeManagement.finFinanceManage.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.financeManagement.finFinanceManage.domain.FinFinanceManage;
import com.slz3.business.module.financeManagement.finFinanceManage.domain.FinFinanceManageCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class FinFinanceManageResAtomic extends FinFinanceManageResExecutor {

    public Mono<ServerResponse> add_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManage finFinanceManage) {
        return FinFinanceManageResSafeValid.add(req, finFinanceManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, finFinanceManage);
    }

    public Mono<ServerResponse> delete_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.delete(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManage finFinanceManage) {
        return FinFinanceManageResSafeValid.modify(req, finFinanceManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, finFinanceManage);
    }

    public Mono<ServerResponse> info_$FinFinanceManageUpdateLock(ServerRequest req) {
        return FinFinanceManageResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.auditSubmit(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.audit(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.auditReject(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.usingEnable(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$FinFinanceManageUpdateLock(ServerRequest req, FinFinanceManageCondition finFinanceManageCondition) {
        return FinFinanceManageResSafeValid.usingDisable(req, finFinanceManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
